<?php

use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model yak\layui\models\admin\User */

?>


<div class="admin-view view-block">

    <?= DetailView::widget([
        'model' => $model,
        'options' => ['class' => 'layui-table'],
        'attributes' => [
            'id',
            'name',
            'avatar',
            'username',
            'auth_key',
            'password_hash',
            'password_reset_token',
            'email:email',
            [
                'attribute' => 'status',
                'format' => ['selected', $model->statusLabels()]
            ],
            [
                'attribute' => 'type',
                'format' => ['selected', $model->typeLabels()]
            ],
            'created_at:datetime',
            'updated_at:datetime',
        ],
    ]) ?>

</div>
